/* 基础样式 */
.comment-component {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
}

/* 评论列表容器 */
.comment-list {
  padding: 10px;
}

/* 评论卡片 */
.comment-card {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 评论头部 */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-cover: cover;
  margin-right: 10px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.user-time {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.user-rating {
  color: #ff9500;
  font-size: 14px;
}

/* 评论内容 */
.comment-content {
  padding: 15px;
  font-size: 15px;
  color: #333;
}

/* 评论图片 */
.comment-images {
  padding: 0 15px 15px;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.image-item {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-more {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

/* 回复列表 */
.replies-container {
  background-color: #f9f9f9;
  padding: 10px 15px;
}

.reply-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.reply-item:last-child {
  border-bottom: none;
}

.reply-header {
  display: flex;
  align-items: center;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-cover: cover;
  margin-right: 8px;
}

.reply-user {
  display: flex;
  flex-direction: column;
}

.reply-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.reply-to {
  font-size: 12px;
  color: #666;
}

.reply-time {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

.reply-content {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
}

/* 回复框 */
.reply-box {
  padding: 15px;
  background-color: #f9f9f9;
}

.reply-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
}

.reply-input:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.2);
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.reply-button {
  background-color: #40a9ff;
  color: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reply-button:hover {
  background-color: #1890ff;
}

.reply-button:disabled {
  background-color: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* 回复按钮 */
.comment-actions {
  padding: 0 15px 15px;
  display: flex;
  justify-content: flex-end;
}

.reply-btn {
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.reply-btn:hover {
  color: #40a9ff;
}
